import axios from 'axios'

const request = axios.create({
    baseURL: 'http://58.19.22.126:8527',
    timeout: 5000,
})


request.interceptors.request.use(
    function (config: any) {
        
        return config
    },
    function (error: any) {
        
        return Promise.reject(error)
    }
)


request.interceptors.response.use(
    function (response: any) {
        return response
    },
    function (error: any) {

        return Promise.reject(error)
    }
)

export default request